package br.com.fidalgotecnologia.layar.itg;

import java.util.List;

import br.com.fidalgotecnologia.layar.data.LayerDAO;
import br.com.fidalgotecnologia.layar.entity.Layer;

public class ItgLayer {
	private static ItgLayer instance;

	public static ItgLayer getInstance() {
		if(instance == null){
			instance = new ItgLayer();
		}
		return instance;
	}
	
	public List<Layer> listarLayer(){
		return LayerDAO.getInstance().listar();
	}

	public boolean salvarLayer(Layer layer) {
		
		return LayerDAO.getInstance().inserir(layer);
	}

}
